<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Canbot: Robot Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Canbot
   
   </div>
   <div id="projectbrief">TEAM B</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Robot Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="Robot" -->
<p><a class="el" href="classRobot.html" title="Robot is the High Level implementation on CanBot. This class is responsible for the calculation of ro...">Robot</a> is the High Level implementation on CanBot. This class is responsible for the calculation of robot movements.  
 <a href="classRobot.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="Robot_8h_source.html">Robot.h</a>&gt;</code></p>

<p><a href="classRobot-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a727510f7a66c008f505dc5e2f107f2bd"></a><!-- doxytag: member="Robot::Robot" ref="a727510f7a66c008f505dc5e2f107f2bd" args="(int tol_arc, int tol_distance)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>Robot</b> (int tol_arc, int tol_distance)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRobot.html#ae36c332d00a584bbc9f9ccf7db54b933">UpdateRobot</a> (<a class="el" href="structPackage.html">Package</a> data)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRobot.html#ab3a82c0e27bbc3fda659e6388387c9f7">UpdateTarget</a> (<a class="el" href="structPackage.html">Package</a> data)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRobot.html#adf8ed82f9f478e6de2691f3d59633f53">CalcTurn</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRobot.html#a8a925b036bc76c19637aad441492556f">Turn</a> (int arc, <a class="el" href="classCanBotLL.html">CanBotLL</a> *c)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRobot.html#ab74905f32ff6cef935a39aebe3d7cf92">CalcDistance</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRobot.html#ac4dd2fece1b7cee2874549d082bcce2e">Drive</a> (int distance, <a class="el" href="classCanBotLL.html">CanBotLL</a> *c)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classRobot.html" title="Robot is the High Level implementation on CanBot. This class is responsible for the calculation of ro...">Robot</a> is the High Level implementation on CanBot. This class is responsible for the calculation of robot movements. </p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ab74905f32ff6cef935a39aebe3d7cf92"></a><!-- doxytag: member="Robot::CalcDistance" ref="ab74905f32ff6cef935a39aebe3d7cf92" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classRobot.html#ab74905f32ff6cef935a39aebe3d7cf92">Robot::CalcDistance</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Deze functie berekend op hoog niveau de afstand tot het target </p>

</div>
</div>
<a class="anchor" id="adf8ed82f9f478e6de2691f3d59633f53"></a><!-- doxytag: member="Robot::CalcTurn" ref="adf8ed82f9f478e6de2691f3d59633f53" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classRobot.html#adf8ed82f9f478e6de2691f3d59633f53">Robot::CalcTurn</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Deze functie berekend op hoog niveau welke hoek gemaakt moet worden tot het target </p>

</div>
</div>
<a class="anchor" id="ac4dd2fece1b7cee2874549d082bcce2e"></a><!-- doxytag: member="Robot::Drive" ref="ac4dd2fece1b7cee2874549d082bcce2e" args="(int distance, CanBotLL *c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classRobot.html#ac4dd2fece1b7cee2874549d082bcce2e">Robot::Drive</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>distance</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classCanBotLL.html">CanBotLL</a> *&#160;</td>
          <td class="paramname"><em>c</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Deze functie herberekend de afstand en geeft deze door naar het low level team </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">distance</td><td>de afstand die gereden moet worden </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a8a925b036bc76c19637aad441492556f"></a><!-- doxytag: member="Robot::Turn" ref="a8a925b036bc76c19637aad441492556f" args="(int arc, CanBotLL *c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classRobot.html#a8a925b036bc76c19637aad441492556f">Robot::Turn</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>arc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classCanBotLL.html">CanBotLL</a> *&#160;</td>
          <td class="paramname"><em>c</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Deze functie herberekend deze hoek en geeft deze door naar het low level team </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">arc</td><td>de hoek die gedraaid moet worden </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae36c332d00a584bbc9f9ccf7db54b933"></a><!-- doxytag: member="Robot::UpdateRobot" ref="ae36c332d00a584bbc9f9ccf7db54b933" args="(Package data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classRobot.html#ae36c332d00a584bbc9f9ccf7db54b933">Robot::UpdateRobot</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPackage.html">Package</a>&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Deze functie leest data van het netwerk team in naar de parameters van deze classe </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>struct van het netwerk team </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="package_8h_source.html">package.h</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ab3a82c0e27bbc3fda659e6388387c9f7"></a><!-- doxytag: member="Robot::UpdateTarget" ref="ab3a82c0e27bbc3fda659e6388387c9f7" args="(Package data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classRobot.html#ab3a82c0e27bbc3fda659e6388387c9f7">Robot::UpdateTarget</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structPackage.html">Package</a>&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Deze functie leest data van het netwerk team in naar de parameters van deze classe </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>struct van het netwerk team </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="package_8h_source.html">package.h</a> </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="Robot_8h_source.html">Robot.h</a></li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 25 2014 16:43:26 for Canbot by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
